package com.atguigu.gmall.product.controller;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：MJS
 * @date ：Created in 2021/5/13  21:27
 * @description：TODO
 */
@RestController
@RequestMapping("/admin/product")
public class TestController {
    @Autowired
    private TestService testService;

    @GetMapping("/test/testLock")
    public Result testLock() {
        testService.testLock();
        return Result.ok();
    }
}
